<?php

    define("PAGE_NUM",10);
    define("SUCCESS_CODE",1);
    define("ERROR_CODE",2);
    define("ONLINE",1);
    define("OFFLINE",2);
//    define("DEL",9);
    define("LOGIN_ERROR","登陆失败");
    define("TOKEN","Hahaha233!");
    define("DELETE_STATUS",9);

    define("IMG_PATH","public");
    define("NOR_STATES",10);

    define("ORDER_SUCCESS","下单成功");
    define("ORDER_ERROR","下单失败");

    define("DEL","del");
    define("PRODUCT_VALIDATOR_ID",0);
    define("TAG_VALIDATOR_ID",1);
    define("INSERT","insert");
    define("UPDATE","update");
    define("VALIDATOR_LIST",[
            [
                "category_id"=>"required|integer",
                "name"=>"required",
                "sort"=>"required|integer|between:1,99",
                "states"=>"required|integer|between:0,1"
            ],
            [
                "tag_id"=>"required|integer",
                "value"=>"required"
            ]
        ]);
